﻿<Window x:Class="Adalbertus.BudgetPlanner.Views.ShellView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:cal="http://www.caliburnproject.org"
        xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" 
        WindowState="Maximized"
>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Border Grid.Row="0" Background="WhiteSmoke" BorderBrush="Black" BorderThickness="0 0 0 1">
            <StackPanel Orientation="Horizontal" Margin="4">                
                <Button Content="&lt;&lt;" ToolTip="Poprzedni budżet" cal:Message.Attach="[Event Click] = [Action ShowPreviousBudget()]"/>
                <Button Content=">>"  ToolTip="Następny budżet" cal:Message.Attach="[Event Click] = [Action ShowNextBudget()]"/>
                <Button Content=" + "  ToolTip="Nowy plan budżetowy" cal:Message.Attach="[Event Click] = [Action CreateNewBudgetPlan()]"/>
                
                <Button Content="Kategorie wydatków" HorizontalAlignment="Right"
                        cal:Message.Attach="[Event Click] = [Action ShowExpenseTypes()]"/>
                <Button Content="Środki zewnętrzne" HorizontalAlignment="Right"
                        cal:Message.Attach="[Event Click] = [Action ShowExternalSources()]"/>
            
            </StackPanel>
        </Border>
        <ContentControl x:Name="ActiveItem" Grid.Row="1"
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
    </Grid>
</Window>